package com.zzw.thread;

/**
 * Created by Administrator on 2019/6/28.
 */
public class MoneyVo {

    public MoneyVo(Integer money){
        this.money = money;
    }
    private Integer money;

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Integer getMoney() {
        return money;
    }

    public synchronized void add(){
        money ++;
    }
}
